#include <iostream>
#include "sqstack.h"

using namespace std;
int main()
{
    SqStack<int, 8> S;
    InitStack(S);

    for (int i = 1; i <= 8; i++)
    {
        Push(S, i * 10);
    }
    while (!StackEmpty(S))
    {
        int e = 0;
        Pop(S, e);
        cout << e << endl;
    }

    return 0;
}